#ifndef __TONE_PLAYER_PRIVATE_H__
#define __TONE_PLAYER_PRIVATE_H__

#include <e32std.h>
#include <MdaAudioTonePlayer.h>
 
class TonePlayer;

class CTonePlayerPrivate : public CBase, public MMdaAudioToneObserver
    {
public:
    static CTonePlayerPrivate* NewL(TonePlayer *wrapper);
    static CTonePlayerPrivate* NewLC(TonePlayer *wrapper);
    ~CTonePlayerPrivate();
public:
	void Play();
    void Stop();
protected: // from MMdaAudioToneObserver
    void MatoPrepareComplete(TInt aError);
    void MatoPlayComplete(TInt aError);
private:
    CTonePlayerPrivate(TonePlayer *wrapper);
    void ConstructL();
private:
    TonePlayer           *q_ptr;
    CMdaAudioToneUtility* 		iToneUtility;
    TInt 						iFrequency;
    TTimeIntervalMicroSeconds	iDuration;
    };
	
#endif // __TONE_PLAYER_PRIVATE_H__
